name = []
phone = []


def search():
    search_name = input("输入你要查询的名字")
    i = name.index(search_name)
    print('查询的名字是%s,查询的电话是%s' % (name[i], phone[i]))


def add():
    add_name = input("输入你要添加的名字")
    add_phone = input("输入你要添加的电话")
    name.append(add_name)
    phone.append(add_phone)
    print(name, phone)


def update():
    update_name = input("输入你要修改的名字")
    i = name.index(update_name)
    update_phone = input("输入你要修改的号码")
    phone[i] = update_phone
    print('修改的名字是%s,修改后的电话是%s' % (name[i], phone[i]))


def delete():
    delete_name = input("输入你要删除的名字")
    i = name.index(delete_name)
    del name[i]
    del phone[i]
    print(name, phone)


def empty():
    name = []
    phone = []
    print(name, phone)



